package com.wjqy.mapper;

import com.wjqy.entity.Cdkey;
import com.wjqy.entity.Comment;
import com.wjqy.entity.User;
import org.apache.ibatis.session.RowBounds;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    List<User> findAll();

    int insertComment(Comment comment);

    int useCDK(Cdkey cdkey);

    int findCDK(String cdk);

    List<Map<String,Object>> findAllCDK(RowBounds rowBounds);

    User getUser(String code);

    int bindSuperior(User user);

    User getUserByOpenid(String openid);
}
